import request from 'request' //引入请求方法
/* 注册 */
/* 发送验证码  http://jd.itying.com/api/sendCode*/
export const getVerify = function (data) {
  /* data===手机号 */
  return request({
    url: "http://jd.itying.com/api/sendCode",
    method: "POST",
    data
  })
}
/* 验证验证码 */
export const reVerify = function (data) {
  return request({
    url: "http://jd.itying.com/api/validateCode",
    method: "POST",
    data
  })
}

/* 设置密码请求 */
export const setPass = function (data) {
  return request({
    url: "http://jd.itying.com/api/register",
    method: "POST",
    data
  })
}

/* 登录接口 */
export const login = function (data) {
  return request({
    url: "http://jd.itying.com/api/doLogin",
    method: "POST",
    data
  })
}

/* 轮播图请求 */
export const swiper = function () {
  return request({
    url: "http://jd.itying.com/api/focus"
  })
}

/* 猜你喜欢数据请求 */
export const userlike = function (data) {
  return request({
    url: "http://jd.itying.com/api/plist",
    data
  })
}

/* 分类页面  http://jd.itying.com/api/pcate*/
export const left_C = function (data) {
  return request({
    url: "http://jd.itying.com/api/pcate",
    data
  })
}

/* 详情页面数据 */
export const detail = function (data) {
  return request({
    url: "http://jd.itying.com/api/pcontent",
    data
  })
}
